package com.rimi.controller;


import com.rimi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/src/main/test")
public class TestController {

    @Autowired
    private MenuService menuService;

    /*@RequestMapping("/index")
    public String index(Model model){
        *//*List<Menu> list = menuService.selectList(null);
        Menu menu = new Menu();
        menu.setMenuName("体育2222");
        menuService.update(menu, new EntityWrapper<Menu>().eq("menu_id",8));
        int i = menuService.selectCount(null);
        System.out.println(i);

        Page<Menu> page = menuService.selectPage(new Page<Menu>(2, 1), new EntityWrapper<Menu>().like("menu_name","%电%"));
        List<Menu> records = page.getRecords();
        for (Menu record : records) {
            System.out.println(record.getMenuName());
        }
        model.addAttribute("menus",records);*//*
        return "index";
    }*/

}
